package com.xmotor.test_mvc_obj_default_value;

import com.alibaba.fastjson.JSON;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author Dang Xianyue
 * @Date 2020-10-19 09:51
 * @Version 1.0
 */
@RestController
@RequestMapping("/TestMvcObjDefaultValue")
public class TestMvcObjDefaultValueController {

    //localhost:8090/test-spring-boot/TestMvcObjDefaultValue/test1
    @RequestMapping("/test1")
    public Object test1(User user) throws Exception{
        System.out.println(JSON.toJSONString(user));
        return user;
    }
}
